import { h } from 'vue';
import { NAvatar } from 'naive-ui';
export const columns = [
  {
    title: 'ID',
    key: 'id',
    width: 20,
  },
  {
    title: '商品ID',
    key: 'proId',
    width: 20,
  },
  {
    title: '用户ID',
    key: 'userId',
    width: 20,
  },
  {
    title: '地址',
    key: 'location',
    width: 40,
  },
  {
    title: '备注',
    key: 'remarks',
    width: 40,
  },
  {
    title: '创建时间',
    key: 'createTime',
    width: 40,
  },
  {
    title: '更新时间',
    key: 'updateTime',
    width: 40,
  },
  {
    title: '图片',
    key: 'img',
    width: 20,
    render(row) {
      return h(NAvatar, {
        size: 38,
        src: row.img,
      });
    },
  },
];
